package com.wyt.design.designmodel.loader;

/**
 * @author weiyatong
 * @version 1.0
 * @date 2021/7/8 上午10:41
 * @describe 调料
 */
public class Mocha extends Beverage {
    Beverage beverage;
    public Mocha(Beverage beverage){
        this.beverage = beverage;
    }

    @Override
    double cost() {
        return beverage.cost()+0.2;
    }
}
